<script setup lang="ts">
import { Mention as MyMention } from './index';

import { ref } from 'vue'
const options = [
  { label: '流程开始', value: 'VARIABLE_NODE_ID', disabled: true, icon: 'src/assets/images/workflowStart.svg' },
  { label: '使用者ID', value: 'userId', parent: 'VARIABLE_NODE_ID'},
  { label: '文件链接', value: 'userFiles', parent: 'VARIABLE_NODE_ID' },
  { label: '许女士', value: 'xu', disabled: true, icon: 'src/assets/images/workflowStart.svg' },
  { label: '周天天', value: 'erzi', parent: 'xu' },
  { label: '我是单个的', value: 'single' },
]
const zoom = ref(1);
const content = ref("{{$VARIABLE_NODE_ID.userId$}}你111说{{$对对对d$}} {{$fdd$}} {{$3444$}}你{{$dddsd$}}是{{$VARIABLE_NODE_ID.userFiles$}}谁：？ {{$VARIABLE_NODE_ID.userId$}}  没有这回事啊")
</script>

<template>
  <div class="dd">
    <my-mention v-model="content" :options="options" :inputStyle="{ color: 'red' }" :prefix="['@']"  :zoom="zoom"
      :containerStyle="{ height: '100%' }">
      default1
    </my-mention>
  </div>

  <div class="content">
    {{ content }}
  </div>
</template>

<style scoped>
.content {
  text-align: left;
  margin-top: 20px;
  height: 200px;
  width: 500px;
  padding: 4px;
  overflow-y: auto;
  border-radius: 4px;
  border: 1px solid rgb(232, 235, 240);
}

.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}

.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}

.logo.vue:hover {
  filter: drop-shadow(0 0 2em #42b883aa);
}
</style>
